home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Nov 89 / 0040-What, no resource fo-Nov89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.6 KB  |  44 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  A33          to A34
  2.  
  3. Item    7447682                         6-Nov-89        20:36
  4.  
  5. From:   D0015                           San Diego Levco, Keith Ostrom,PRT
  6.  
  7. To:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    What, no resource fork? BOOM!
  10.  
  11. Hi all --
  12.  
  13. An interesting tidbit for your consideration (MacApp 2.0ß9):
  14.  
  15. The new version of the application I am writing (RenderMan 3.0) performs all
  16. document I/O through a plug-in module mechanism. The modules maintain
  17. information about which fork(s) of the file are to be opened for I/O and the
  18. correct OVERRIDEs are in place to make this work right.
  19.  
  20. The problem comes in when one MIGHT have a resource fork available in a file.
  21. A good example is a TEXT file that may or may not have font/tab information on
  22. the resource fork.
  23.  
  24. If fUsesRsrc is set, the MAOpenFile procedure will call either OpenResFile() or
  25. OpenRFPerm() to open the file.  If the file does not have a resource fork, then
  26. an error -39 (EOF) occurs when the attempt is made to read the resource map.
  27. The Failure chain kicks in and one gets a "Disk error" alert and a nasty
  28. migraine.
  29.  
  30. This really isn't a bug, but it is dang (that's right, DANG) inconvenient,
  31. since one has to handle some file opening, which is not necessarily trivial in
  32. the case of file servers etc, in places that make less sense architecturally.
  33. While the users (ie. US) can adapt to this via an OVERRIDE to
  34. TDocument.OpenAFile, I feel that some consideration be made in MacApp for this
  35. common occurence.
  36.  
  37. Then again, I may be missing something.
  38.  
  39. Thanks --
  40.  
  41. Duane "OVERRIDE just for the heck of it" Maxwell
  42.  
  43.  
  44.